package com.mcflies.ui.aidl_service;

import com.mcflies.ui.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.view.WindowManager;

/**
 * @author:mcfly_jun
 * @create_date:2012-8-12
 * @comment:AIDL和远程Service
 */
public class AIDLAndServiceActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.aidl_service_main);

		new Handler().postDelayed(new Runnable() {
			@Override
			public void run() {
				Intent intent = new Intent(AIDLAndServiceActivity.this,
						AIDLAndServicePlayActivity.class);
				AIDLAndServiceActivity.this.startActivity(intent);
				AIDLAndServiceActivity.this.finish();
			}
		}, 2000);
	}

}
